package com.weijian.dal.vo;

import com.baomidou.mybatisplus.annotation.TableField;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

@Schema(description = "商品分页显示VO")
@Data
public class ItemPageReqVO {

    @JsonFormat(shape = JsonFormat.Shape.STRING)
    @Schema(description = "id")
    private Long id;

 /*   @TableId(value = "id", type = IdType.AUTO)
    @Schema(description = "商品id")
    private Long id;*/

    /**
     * SKU名称
     */
    @Schema(description = "SKU名称")
    private String name;

    /**
     * 价格（分）
     */
    @Schema(description = "价格（分）")
    private Integer price;

    /**
     * 库存数量
     */
    @Schema(description = "库存数量")
    private Integer stock;

    /**
     * 商品图片
     */
    @Schema(description = "商品图片")
    private String image;

    /**
     * 类目名称
     */
    @Schema(description = "类目名称")
    private String category;

    /**
     * 品牌名称
     */
    @Schema(description = "品牌名称")
    private String brand;

    /**
     * 规格
     */
    @Schema(description = "规格")
    private String spec;

    /**
     * 销量
     */
    @Schema(description = "销量")
    private Integer sold;

    /**
     * 评论数
     */
    @Schema(description = "评论数")
    private Integer commentCount;

    /**
     * 是否是推广广告，true/false
     */
    @Schema(description = "是否是推广广告，true/false")
    @TableField("is_ad")
    private Integer isAD;

    /**
     * 商品状态 1-正常，2-下架，3-删除
     */
    @Schema(description = "商品状态 1-正常，2-下架，3-删除")
    private Integer status;
}
